package com.octopus.optiworks.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.JoinColumn;

@Entity
@Table
public class Step10_1Data implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private Long id;

	private String filterId;
	
	private String testLightCode;
	
	private String grinleosCode;
	
	private String filterCode;
	
	private String pigtailLn;
	
	private String pigtailNeed;
	
	private String  pigtailActual;
	
	private String operator;
	
	private Date date;
	
	private Product product;
	
	private String supplierFilterCode;
	
	private String box;
	
	private String lot;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column
	public String getFilterId() {
		return filterId;
	}

	public void setFilterId(String filterId) {
		this.filterId = filterId;
	}

	@Column
	public String getTestLightCode() {
		return testLightCode;
	}

	public void setTestLightCode(String testLightCode) {
		this.testLightCode = testLightCode;
	}

	@Column
	public String getGrinleosCode() {
		return grinleosCode;
	}

	public void setGrinleosCode(String grinleosCode) {
		this.grinleosCode = grinleosCode;
	}

	@Column
	public String getFilterCode() {
		return filterCode;
	}

	public void setFilterCode(String filterCode) {
		this.filterCode = filterCode;
	}

	@Column
	public String getPigtailLn() {
		return pigtailLn;
	}

	public void setPigtailLn(String pigtailLn) {
		this.pigtailLn = pigtailLn;
	}

	@Column
	public String getPigtailNeed() {
		return pigtailNeed;
	}

	public void setPigtailNeed(String pigtailNeed) {
		this.pigtailNeed = pigtailNeed;
	}

	@Column
	public String getPigtailActual() {
		return pigtailActual;
	}

	public void setPigtailActual(String pigtailActual) {
		this.pigtailActual = pigtailActual;
	}

	@Column
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	@Column
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PRODUCTID")
	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	@Column
	public String getSupplierFilterCode() {
		return supplierFilterCode;
	}

	public void setSupplierFilterCode(String supplierFilterCode) {
		this.supplierFilterCode = supplierFilterCode;
	}

	@Column
	public String getBox() {
		return box;
	}

	public void setBox(String box) {
		this.box = box;
	}

	@Column
	public String getLot() {
		return lot;
	}

	public void setLot(String lot) {
		this.lot = lot;
	}
	
}
